package com.qmds.common.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 短信发送表(SmsLog)表实体类
 *
 * @author makejava
 * @since 2024-08-12 14:14:37
 */
@Data
@TableName("t_user_log")
@NoArgsConstructor
public class UserLog extends Model<SmsLog> {
    //序号，主键
    @TableId(type = IdType.AUTO)
    private Integer id;
    //用户id
    private Integer uid;
    //类型
    private String type;
    //标题
    private String title;
    //内容
    private String info;
    //创建时间
    private Date createTime;

    public UserLog(Integer uid, String type, String title, String info) {
        this.uid = uid;
        this.type = type;
        this.title = title;
        this.info = info;
        this.createTime=new Date();
    }
}
